﻿

using Travel.Data;
using Travel.Data.Dtos.TravelBusiness;
using Travel.Data.Entity;
using Travel.Data.Inputs;

namespace Travel.Service.TravelBusiness;

public interface ICategoryService
{
    /// <summary>
    /// 查询所有的分类
    /// </summary>
    /// <returns></returns>
    Results<List<CategoryDto>> GetList();
    /// <summary>
    /// 添加或者修改分类
    /// </summary>
    /// <returns></returns>
    Results<string> AddOrUpdate(CategoryInput categoryInput);

    /// <summary>
    /// 获取一条分类记录
    /// </summary>
    /// <returns></returns>
    Results<CategoryDto> GetCategory(long id);

    /// <summary>
    /// 删除一条分类
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
   Task< Results<string>> Delete(params long[] id);
}

